<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*"%>
<%@ page import="xml.response.*"%>
<%@ page import="requestInterFace.Handle.*"%>
<%@ page import="xml.root"%>
<%@ page import="util.print.printLogCat"%>
<%@ page import="org.sql.table.*"%>
<%@ page import="xml.var"%>
<%@ page import="java.util.Vector"%>
<%@ page import="java.util.Enumeration"%>
<%@ page import="jqgrid.jqgrid"%>
<%@ page import="util.check"%>
<%@ include file="../../util/paramPrint.jsp" %>
<%@ page trimDirectiveWhitespaces="true" %> 
<%   

    /*********** jqgrid ******************/
		jqgrid jq=new jqgrid();
		jq.setRows(request.getParameter(jqgrid._rows));
		jq.setSord(request.getParameter(jqgrid._sord));
		jq.setSortname(request.getParameter(jqgrid._sortname));
		jq.setPage(request.getParameter(jqgrid._page));
		jq.setOper(request.getParameter(jqgrid._oper));
		jq.setSearch(request.getParameter(jqgrid._search));
		/*************************************/
		
		String userID=(String)session.getAttribute("User_ID");
		String userType=(String)session.getAttribute("User_Type");
		root root=new root();
		response res=new response();
		res.setAttribute_Id("0");
        if(userType==null||!userType.equals("3")){
		root.setStatus("false");
		root.setMsg("没有权限");
		PrintWriter pw = response.getWriter();
		pw.println(root.getXmlString());
		pw.flush();
		return ;
		}
		
		orderStat orderStat=new orderStat();
		res.put("UserOrderNum",var.create().setName("UserOrderNum").setValue(""+orderStat.getUserOrderNum(userID)));
		res.put("SUCUserOrderNum",var.create().setName("SUCUserOrderNum").setValue(""+orderStat.getSUCUserOrderNum(userID)));
		res.put("FillUserOrderNum",var.create().setName("FillUserOrderNum").setValue(""+orderStat.getFillUserOrderNum(userID)));
		res.put("Backlv",var.create().setName("Backlv").setValue(""+orderStat.getBacklv(userID)));
		res.put("UserTotlePayment_Price",var.create().setName("UserTotlePayment_Price").setValue(""+orderStat.getUserTotlePayment_Price(userID)));
		root.addResponse(res);
		root.setStatus("true");
		root.setMsg("成功");
		//printLogCat.printlnWriter(root.getXmlString());
		String rep=root.getXmlString();
%>
<%=rep%>





